﻿namespace 五
{
    internal class Program
    {
        static void Main(string[] args)
        {
            PlainRect p=new PlainRect(10,10,10,20);
  
            Console.WriteLine(p.isinside(25.5, 13));
            Console.ReadLine();
        }
    }
    class Rect
    {
        public double width, height;
        public Rect(double width, double height)
        {
            this.width = width;
            this.height = height;
        }
        public Rect() 
        {
            width = 10;height = 10;
        }
        public double area()
        {
            return width * height;
        }
        public double perimeter()
        {
            return 2 * (width + height);
        }
    }
    class PlainRect :Rect
    {
        private double startX, startY;
        public PlainRect(double startX,double startY,double width,double height)
        {
            this.startX = startX;
            this.startY = startY;
            this.width = width;
            this.height = height;
        }
        public bool isinside(double x,double y)
        {
            if(x>startX||x<startX-height&&y<startY||y>startY+width)
            {
                return false;
            }
            return true;
        }
    }
}
